package com.bestcem.xm.survey.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import com.bestcem.xm.component.mybatis.format.String2JacksonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 
 * @TableName ds_survey_quotacondition
 */
@TableName(value ="ds_survey_quotacondition")
@Data
@EqualsAndHashCode(callSuper = true)
public class SurveyQuotaCondition extends BaseEntity2 {
    /**
     * 
     */
    @TableId(value = "id")
    private String id;

    /**
     * name
     */
    @TableField(value = "name")
    private String name;

    /**
     * 问卷id
     */
    @TableField(value = "project_id")
    private String projectId;

    /**
     * quota_id
     */
    @TableField(value = "quota_id")
    private String quotaId;

    /**
     * 配额检查点list: list元素是gid:title的集合，前端提供
     */
    @TableField(value = "checkpoints")
    @JsonSerialize(using = String2JacksonSerializer.class)
    private String checkpoints;
}